{extend name="layout" /}
{block name="css"}
<style type="text/css">
	td{font-size: 13px;}
	.pagination{margin-top: 0px;}
</style>
{/block}
{block name="content"}
<div id="content" class="content">
			<!-- begin breadcrumb -->
			<ol class="breadcrumb pull-right">
				<li><a href="{:url('Admin/Index/index')}">首页</a></li>
				<li><a href="javascript:;">系统管理</a></li>
				<li><a href="javascript:;">权限管理</a></li>
			</ol>
			<!-- end breadcrumb -->
			<!-- begin page-header -->
			<h1 class="page-header">权限管理<small></small></h1>
			<!-- end page-header -->
	<div class="col-md-12">
					<div class="panel panel-inverse" data-sortable-id="index-1">
						<div class="panel-heading">
							<div class="panel-heading-btn">
								<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
								<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-repeat"></i></a>
								<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
								<a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-danger" data-click="panel-remove"><i class="fa fa-times"></i></a>
							</div>
							<h4 class="panel-title">系统所有权限</h4>
						</div>
						<div class="panel-body">
							<!-- <div id="interactive-chart" class="height-sm"></div> -->
                		 <table class="table table-hover table-striped">
        <thead>
            <tr>
                <td>ID</td>
                <td>权限名称</td>
                <td>URL</td>
                <td>操作</td>
            </tr>
        </thead>
        <tbody>
        {volist name="access" id="vo"}
            <tr>
                <td>{$vo.ac_id}</td>
						<td>{$vo.ac_name}</td>
						<td>{$vo.ac_url}</td>
						<td>
								<a href="{:url('Admin/Action/doact',['id' => $vo['ac_id']])}">修改 |</a>
								<a href="{:url('Admin/Action/delact',['id' => $vo['ac_id']])}" style="color: red;">删除</a>
						</td>
            </tr>
        {/volist}

        </tbody>
    </table>
    <hr/>
    <div class="col-md-9"><a href="{:url('Admin/Action/doact')}"><button type="button" class="btn btn-primary pull-left">添加权限</button></a></div>
    <div class="col-md-3"><p class="pull-right">{$access->render()}</p></div>
        			</div>
						</div>
					</div>
	</div>
{/block}
</div>

